import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import Vant from 'vant'
import 'vant/lib/index.css'
import 'normalize.css'
import '@/styles/comm.css'

// import 'amfe-flexible'
import componentJs from '@/components/index.js'
// 全局过滤器注册
import filtersobj from '@/filters/index.js'
// object.keys()将对象的key转换成数组 object.values:将对象的value转换成数组 object.entries:将对象的key与value转换成数组
Object.keys(filtersobj).forEach(item => {
  Vue.filter(item, filtersobj[item])
})
Vue.use(componentJs, 123)
Vue.use(Vant)
Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
